#pragma once


enum class WidgetState:unsigned char
{
	STARTING_STATE=0,
	STARTED_STATE,
	CONNECTING_STATE,
	CONNECTED_STATE,
	STOPING_STATE,
	STOPED_STATE
};

struct TestStruct
{
	int len{};
	char buf[64]{};
};


struct TPkgHeader
{
	DWORD seq;
	int body_len;
};

struct TPkgBody
{
	char name[30];
	short age;
	char desc[1];
};

struct TPkgInfo
{
	bool is_header;
	int length;

	TPkgInfo(bool header = true, int len = sizeof(TPkgHeader)) : is_header(header), length(len) {}
	void Reset() { is_header = true, length = sizeof(TPkgHeader); }
	~TPkgInfo() {}
};
